#ifndef _OPEN_POWER_CODE_H
#define _OPEN_POWER_CODE_H

#include "sc95f.h"
#include "key_process.h"
#include "soft_time.h"
//#include "..\Drivers\SCDriver_list.h"
//#include "HeadFiles\SC_itExtern.h"
//extern uint8_t open_power_code_flag;
enum{
    OPEN_POWER_NONE = 0,
    OPEN_POWER_OK   = 1,
    OPEN_POWER_TEMP = 2,
};
typedef struct 
{
    uint8_t open_power_code_flag;
    uint8_t open_power_success;// 0-未解码, 1-
    uint8_t Seed;
    uint16_t Seed_x;
    uint16_t Seed_y;
    uint16_t Seed_r;
    uint8_t openpower_code_array[3];
    uint8_t suiji_code[3];
    uint8_t master_code[3];
    uint8_t input_code[3];
    uint16_t n_array[3];
    uint16_t offset;
}OPENPOWER_CODE_STRUCT;
extern OPENPOWER_CODE_STRUCT openpower_code;
//extern uint8_t openpower_flag;
void open_power_times(void);
void open_power_code_process(void);

void OpenPower_Reset(void);
#endif